From ac0553f4054f7b3e0bfa848ababfabc748844dbb Mon Sep 17 00:00:00 2001 From: =?utf8?q?Istv=C3=A1n=20V=C3=A1radi?= Date: Tue, 11 Mar 2025 16:09:05 +0100 Subject: [PATCH] Fix version detection by the Ubuntu/Debian build script MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Signed-off-by: István Váradi --- admin/linux/debian/scripts/git2changelog.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/admin/linux/debian/scripts/git2changelog.py b/admin/linux/debian/scripts/git2changelog.py index f5f991869..494cd3399 100755 --- a/admin/linux/debian/scripts/git2changelog.py +++ b/admin/linux/debian/scripts/git2changelog.py @@ -31,7 +31,7 @@ def getCommitVersion(commit): try: for line in subprocess.check_output(["git", "show", commit + ":VERSION.cmake"]).splitlines(): - m = re.match("set\( MIRALL_VERSION_([A-Z]+) +([0-9]+) *\)", line) + m = re.match("set\( *MIRALL_VERSION_([A-Z]+) +([0-9]+) *\)", line) if m is not None: kind=m.group(1) version=m.group(2) -- 2.30.2